// court.ts

import { Router } from "express";
import CourtController from "@/controllers/CourtController";

const router = Router();

// 创建球场
router.post("/create", CourtController.createCourt);

// 获取球场列表
router.get("/getList", CourtController.getCourtList);

// 更新球场信息
router.put("/update", CourtController.updateCourt);

// 删除球场
router.delete("/delete", CourtController.deleteCourt);

// 获取单个球场信息
router.get("/courtInfo", CourtController.getCourtById);

export default router;
